package com.fdb.efp.nls.service.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fdb.basic.framework.core.constant.ESBConstant;
import com.fdb.basic.framework.core.vo.BaseInfo;

/**
 * 返回给手机银行的通用响应类型
 *
 */
public class ResponseVO extends BaseInfo{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@JsonProperty("RetCd")
	private String RspCd;//响应码 00000：查询成功，99999：查询失败
	@JsonProperty("RetMsg")
	private String RspCntnt;//响应内容
	@JsonProperty("Body")
	private Object Body;//响应数据
	@JsonProperty("OrigCnsmrSeqNo")
	private Object SeqNo;//流水号
	
	@JsonIgnore
	public String getRspCd() {
		return RspCd;
	}
	@JsonIgnore
	public void setRspCd(String rspCd) {
		RspCd = rspCd;
	}
	@JsonIgnore
	public String getRspCntnt() {
		return RspCntnt;
	}
	@JsonIgnore
	public void setRspCntnt(String rspCntnt) {
		RspCntnt = rspCntnt;
	}
	
	@JsonIgnore
	public Object getBody() {
		return Body;
	}
	@JsonIgnore
	public void setBody(Object body) {
		Body = body;
	}
	@JsonIgnore
	public Object getSeqNo() {
		return SeqNo;
	}
	@JsonIgnore
	public void setSeqNo(Object seqNo) {
		SeqNo = seqNo;
	}
	public static com.fdb.efp.nls.service.vo.ResponseVO ResultSuccess(String RetMsg, Object body) {
		com.fdb.efp.nls.service.vo.ResponseVO responseVO = new com.fdb.efp.nls.service.vo.ResponseVO();
		responseVO.setRspCd(ESBConstant.SUCCESS);
		responseVO.setRspCntnt(RetMsg);
		responseVO.setBody(body);
		return responseVO;
	}
	
	public static com.fdb.efp.nls.service.vo.ResponseVO ResultSuccess(String RetMsg) {
		com.fdb.efp.nls.service.vo.ResponseVO responseVO = new com.fdb.efp.nls.service.vo.ResponseVO();
		responseVO.setRspCd(ESBConstant.SUCCESS);
		responseVO.setRspCntnt(RetMsg);
		return responseVO;
	}
	
	public static com.fdb.efp.nls.service.vo.ResponseVO ResultFailed() {
		com.fdb.efp.nls.service.vo.ResponseVO responseVO = new com.fdb.efp.nls.service.vo.ResponseVO();
		responseVO.setRspCd(ESBConstant.FAILURE);
		responseVO.setRspCntnt("查询失败");
		return responseVO;
		
	}
	
	
	public static com.fdb.efp.nls.service.vo.ResponseVO ResultFailed(String RetMsg) {
		com.fdb.efp.nls.service.vo.ResponseVO responseAppVO = new com.fdb.efp.nls.service.vo.ResponseVO();
		responseAppVO.setRspCd(ESBConstant.FAILURE);
		responseAppVO.setRspCntnt(RetMsg);
		return responseAppVO;
	}
	
	
}
